package com.china08.yxyapi.entity.db.questionbank;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * 
 * 
 * 题库: 版本信息
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_quesbank_version", catalog = "yxy_question_bank")
public class YxyQuesbankVersion extends BaseEntityNoId {

    @Id
    @Column(length = 32)
    private String id;

    @Column(length = 255, nullable = false)
    private String name;

    // 学段
    @Column(nullable = false, columnDefinition = "varchar(32) comment '学段id' ")
    private String stageId;

    @Column(nullable = false, columnDefinition = "varchar(255) comment '学段名称' ")
    private String stageName;

    // 科目
    @Column(nullable = false, columnDefinition = "varchar(32) comment '学科id' ")
    private String subjectId;

    @Column(nullable = false, columnDefinition = "varchar(255) comment '学科名称' ")
    private String subjectName;

    @Column(nullable = false, columnDefinition = "int default 1 comment '排序字段' ")
    private Integer orderNum;

    @Column(nullable = false, columnDefinition = "int default 1 comment '状态信息0无效 1 有效' ")
    private Integer status;

    @Column(nullable = false, columnDefinition = "varchar(255)  comment '描述信息' ")
    private String descript;

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     *            the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the stageId
     */
    public String getStageId() {
        return stageId;
    }

    /**
     * @param stageId
     *            the stageId to set
     */
    public void setStageId(String stageId) {
        this.stageId = stageId;
    }

    /**
     * @return the stageName
     */
    public String getStageName() {
        return stageName;
    }

    /**
     * @param stageName
     *            the stageName to set
     */
    public void setStageName(String stageName) {
        this.stageName = stageName;
    }

    /**
     * @return the subjectId
     */
    public String getSubjectId() {
        return subjectId;
    }

    /**
     * @param subjectId
     *            the subjectId to set
     */
    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }

    /**
     * @return the subjectName
     */
    public String getSubjectName() {
        return subjectName;
    }

    /**
     * @param subjectName
     *            the subjectName to set
     */
    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    /**
     * @return the orderNum
     */
    public Integer getOrderNum() {
        return orderNum;
    }

    /**
     * @param orderNum
     *            the orderNum to set
     */
    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    /**
     * @return the status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * @param status
     *            the status to set
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return the descript
     */
    public String getDescript() {
        return descript;
    }

    /**
     * @param descript
     *            the descript to set
     */
    public void setDescript(String descript) {
        this.descript = descript;
    }

}
